package com.net.xpay.core.dao.collect;

import com.net.xpay.core.domain.collect.CollectionOrder;
import com.net.xpay.core.model.CollectionOrderSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.VersionedMapper;
import com.net.common.annotation.DataShard;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataShard("xpay")
@Repository
public interface CollectionOrderMapper extends VersionedMapper<Long, CollectionOrder> {
    List<CollectionOrder> search(@Param("searchModel") CollectionOrderSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel")CollectionOrderSearchModel searchModel);

    List<CollectionOrder> findByIds(@Param("ids") List<Long> ids);

    int batchUpdate(@Param("records") List<CollectionOrder> records);
}
